home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Genius of Edison
/
The Genius of Edison (Version 1.0)(Softkey Multimedia)(GOE744AE-CD)(1996).ISO
/
pc
/
data
/
shared.cst
/
00069_Script_WAIT-PREPARE VIDEO
< prev
next >
Wrap
Text File
|
1996-09-03
|
4KB
|
125 lines
-- -----------------------------------------------------------
-- Handler waitVideoProcessFrame waits for a video and processes the frame.
on waitVideoProcessFrame whichSprite
global localOptionsVisible , expressOptionsVisible
set the movierate of sprite whichsprite = 1
repeat while (not (the mouseDown)) and (the movieRate of sprite whichSprite <> 0) and not(localOptionsVisible) and (not expressOptionsVisible)
processFrame
updatestage
end repeat
set the mouseDownScript = EMPTY
end
-- -----------------------------------------------------------
-- Handler waitVideoNoProcess waits for a video and does not
-- process the frame.
on waitVideoNoProcess whichSprite
set the movierate of sprite whichsprite = 1
repeat while (not (the mouseDown)) and (the movieRate of sprite whichSprite <> 0)
updatestage
end repeat
end
-- -----------------------------------------------------------
-- Handler prepareVideoProcessFrame prepares the video in the
-- given sprite by rewinding the video but not actually playing
-- the video. It also processes the frame.
on prepareVideoProcessFrame whichSprite
processFrame
set the movierate of sprite whichsprite = 0
set the movieTime of sprite whichSprite to 0
end
-- -----------------------------------------------------------
-- Handler prepareVideoNoProcess prepares the video in the
-- given sprite by rewinding the video but not actually playing
-- the video. It does not process the frame.
on prepareVideoNoProcess whichSprite
set the movierate of sprite whichsprite = 0
set the movieTime of sprite whichSprite to 0
end
-- -----------------------------------------------------------
-- Handler waitVideoJumpStartProcessFrame waits for a video,
-- and jumps to start if interrupted. It also processes the
-- frame.
on waitVideoJumpStartProcessFrame whichSprite
set the movierate of sprite whichsprite = 1
repeat while (not (the mouseDown)) and (the movieRate of sprite whichSprite <> 0)
processFrame
updatestage
end repeat
set jumpTime = 0
set the movieTime of sprite whichSprite = jumpTime
updateStage
end
-- -----------------------------------------------------------
-- Handler waitVideoJumpStartNoProcess waits for a video,
-- and jumps to start if interrupted. It does not processes the
-- frame.
on waitVideoJumpStartNoProcess whichSprite
set the movierate of sprite whichsprite = 1
repeat while (not (the mouseDown)) and (the movieRate of sprite whichSprite <> 0)
updatestage
end repeat
set jumpTime = 0
set the movieTime of sprite whichSprite = jumpTime
updateStage
end
-- -----------------------------------------------------------
-- Handler waitVideoJumpEndProcessFrame waits for a video, and
-- jumps to end if interrupted. It also processes the frame.
on waitVideoJumpEndProcessFrame whichSprite
set the movierate of sprite whichsprite = 1
repeat while (not (the mouseDown)) and (the movieRate of sprite whichSprite <> 0)
processFrame
updatestage
end repeat
set jumpTime = the duration of cast (the castNum of sprite whichSprite)
set the movieTime of sprite whichSprite = jumpTime
updateStage
end
-- -----------------------------------------------------------
-- Handler waitVideoJumpEndNoProcess waits for a video, and
-- jumps to end if interrupted. It does not process the frame.
on waitVideoJumpEndNoProcess whichSprite
set the movierate of sprite whichsprite = 1
repeat while (not (the mouseDown)) and (the movieRate of sprite whichSprite <> 0)
updatestage
end repeat
set jumpTime = the duration of cast (the castNum of sprite whichSprite)
set the movieTime of sprite whichSprite = jumpTime
updateStage
end
on setMouseDownScriptStopVideo whichSprite
-- set the mouseDownScript = "stopVideo" & string(whichSprite)
set the mouseDownScript = "beep 5"
end
on stopVideo whichSprite
set the movieRate of sprite whichSprite = 0
end